package boundarys;

import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JButton;

import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;
import java.awt.event.WindowAdapter;
import java.awt.event.WindowEvent;

public class ManageClientsGUI extends AbstractGUI {

	private JFrame frmCcrmManage;

	public ManageClientsGUI() {
		initialize();
		initGUI(frmCcrmManage);
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frmCcrmManage = new JFrame();
		frmCcrmManage.setResizable(false);

		frmCcrmManage.setTitle("CCRM > Manage Clients");
		frmCcrmManage.setBounds(100, 100, 311, 123);
		frmCcrmManage.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
		frmCcrmManage.getContentPane().setLayout(null);
		
		JLabel lblAddOrUpdate = new JLabel("Add or update client?");
		lblAddOrUpdate.setBounds(85, 11, 151, 14);
		frmCcrmManage.getContentPane().add(lblAddOrUpdate);
		
		JButton btnAddClient = new JButton("Add Client");
		btnAddClient.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				frmCcrmManage.dispose();
				new AddClientGUI();
			}
		});
		btnAddClient.setBounds(10, 36, 117, 34);
		frmCcrmManage.getContentPane().add(btnAddClient);
		
		JButton btnUpdateClient = new JButton("Update Client");
		btnUpdateClient.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
				frmCcrmManage.dispose();
				new UpdateClientGUI();
			}
		});
		btnUpdateClient.setBounds(168, 36, 117, 34);
		frmCcrmManage.getContentPane().add(btnUpdateClient);
		frmCcrmManage.setVisible(true);
	}

	@Override
	public void getReply(Object r) {
		
		
	}

}
